#!/usr/local/bin/omf


# gets value at position in list, starting from 0
# expects $1 LIST, $2 INT
# returns INT
function list_get_at
{
	var n = $2;
#TODO <=
       if n == 0
       return hd($1); 
    return $0(tl($1), n - 1);
}
    
